package unit

import (
	"lnzw/engine/aoi/crosslinks"
	"lnzw/server/test/test_fyne/test_3/data"
)

type PlayerUnit struct {
	data.BaseUnit
}

func (p *PlayerUnit) GetUnitType() data.UnitType {
	return data.Player
}

func NewPlayerUnit(id int64, x int, y int, viewRange int) *PlayerUnit {
	return &PlayerUnit{
		BaseUnit: data.BaseUnit{
			AOIEntity: crosslinks.AOIEntity{Pos: crosslinks.Point{X: float32(x), Y: float32(y)}},
			Id:        id,
			ViewRange: viewRange,
		},
	}
}
